
package com.horizon.mobile.adapter;

import java.util.Map;

import zuo.biao.library.base.BaseViewAdapter;
import android.app.Activity;
import android.view.ViewGroup;

import com.horizon.mobile.model.Agent;
import com.horizon.mobile.view.AgentView;
import com.horizon.mobile.view.AgentViewSet;

/**用户adapter
 * @author 左大明
 */
public class AgentSetAdapter extends BaseViewAdapter<Agent, AgentViewSet> {
	 private Map<String, Agent> isCheckedMap;
//	public AgentSetAdapter(Activity context) {
//		super(context);
//	}
	
	public AgentSetAdapter(Activity context,Map<String, Agent> isCheckedMap) {
		super(context);
		this.isCheckedMap=isCheckedMap;
	}

	@Override
	public AgentViewSet createView(int position, ViewGroup parent) {
		return new AgentViewSet(context, resources,isCheckedMap);
	}
	
	@Override
	public long getItemId(int position) {
		return 0;
	}

}